define(['knockout', 'eventbus'], function(ko, eventbus){
    let title = "Sova";
    let currentComponent = ko.observable("home");

    let changeComponent = function(component) {
        currentComponent(component);
    }

    eventbus.subscribe("changeComponentEvent", function(componentName) {
        changeComponent(componentName);
    });

    return {
        title: title,
        currentComponent
    };
});